using System.Xml.Serialization;
using LinqToDB;
using LinqToDB.Mapping;
using NalogGarLoader.Data.Tables.GarEntries;

namespace NalogGarLoader.Data.Tables.GarEntries.AddressTables;

#nullable disable

[XmlRoot("ITEM")]
[Table(GarTypes.AS_ADDR_OBJ_DIVISION)]
public class AddressObjectDivision : GarAddressTableEntryBase
{
    [XmlAttribute("ID")]
    [PrimaryKey]
    public long Id { get; set; }

    [XmlAttribute("PARENTID")]
    [Column]
    public long ParentId { get; set; }

    [XmlAttribute("CHANGEID")]
    [Column]
    public long ChangeId { get; set; }      

    [XmlAttribute("CHILDID")]
    [Column]
    public long ChildId { get; set; }         
}